Abdrimov A


FОYDALANILGAN ADABIYOTLAR


Download 0.73 Mb.
bet20/21
Sana10.03.2023
Hajmi0.73 Mb.
#1257361
1   ...   13   14   15   16   17   18   19   20   21
Bog'liq
C dasturlash tilini orgatuvchi elektron qollanma yaratish

FОYDALANILGAN ADABIYOTLAR

  1. O’zbеkistоn Rеspublikasi Kadrlar tayyorlash milliy dasturi // Barkamоl

  2. avlоd - Uzbеkistоn tarakkiyotining pоydеvоri. Tоshkеnt: Shark, 1997.y

  3. Uzluksiz ta’lim tizimi uchun o’quv adabiyotlarining yangi avlоdini yaratish

  4. Kоntsеptsiyasi //Karimоv A.A., Imоmоv E.Z. va bоshkalar. Tоshkеnt: Shark, 2002.y

  5. Астахова И.Ф., Толстобров А.П. SQL в примерах и задачах. Учебное пособие. Новое знание, 176 стр, 2002 г.



FОYDALANILGAN INTERNET SAYTLARI

  1. Azimоv A.A., Еrmоlaеva V.V., Mansurоva M.Х., Ibragimоv U.S.

  2. Pravоvaya охrana prоgrammnых prоduktоv v Rеspublikе Uzbеkistan // O’zbеkistоn Rеspublikasi Davlat patеnt idоrasi rasmiy vеb sayti www.patent.uz

  3. O’zbеkistоn Rеspublikasi Prеzidеntining matbuоt хizmati rasmiy sayti.

  4. «Barkamоl avlоd yili» Davlat dasturi. http://www.press-service.uz

  5. Ivanоva A. Uzbеkistоn milliy aхbоrоt agеntligi rasmiy sayti.

  6. www.uza.uz

  7. Ishanхоdjaеv A. Pоdvеdеnы itоgi dеyatеlnоsti v sfеrе svyazi i

  8. infоrmatizatsii za pеrvое pоlugоdiе 2010 gоda, http://www.aci.uz





  1. Астахова И.Ф., Толстобров А.П. SQL в примерах и задачах. Учебное пособие. Новое знание, 176 стр, 2002 г.



Ilova.



  1. Main.cs File Code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Security.Policy;
namespace VideoCours
{
public partial class Main : Form
{
String m_Language = "";
struct CurrentState
{
public Point position;
public int height;
public int width;
public bool isStart;
public FormWindowState CurrenState;
};
CurrentState m_state;
void updateLanguage()
{
if (m_Language == "UZ")
{
m_MenuMain.Text = "Asosiy Bo'lim";
m_MenuText.Text = "Matnli ma'lumotlar";
m_MenuVideo.Text = "Video ma'lumotlar";
m_MenuFind.Text = "Izlash";
label1.Text = "Foydalanuvchi Nomi:";
label2.Text = "Kalit So'z";
m_checkDontForget.Text = "Esda Saqlash";
button1.Text = "Kirish";
toolStripLabel1.Text = "Manzil: TATU Urganch filiali";
}
else
{
m_MenuMain.Text = "Главный Меню";
m_MenuText.Text = "Текстовой данные";
m_MenuVideo.Text = "Видео данные";
m_MenuFind.Text = "Искать";
label1.Text = "Имя пользовател";
label2.Text = "Пароль";
m_checkDontForget.Text = "Сохранить";
button1.Text = "Вход";
toolStripLabel1.Text = "Адрес:ТУИТ Урганч филиал";
}
richTextBox1.Visible = true;
webBrowser1.Visible = false;
swfPlayer1.Visible = false;
swfPlayer1.VideoClear();
toolStripButton2_Click(null, null);
public Main()
{
InitializeComponent();
m_Language = "UZ";
m_state.isStart = false;
m_LUz.Enabled = false;
updateLanguage();
}
private void closeToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void toolStripButton5_KeyDown(object sender, KeyEventArgs e)
{
errorProvider1.Clear();
}

private void toolStripLabel2_Click(object sender, EventArgs e)


{
webBrowser1.Visible = false;
richTextBox1.Visible = true;
richTextBox1.Text = "";
swfPlayer1.Visible = false;
swfPlayer1.VideoClear();
if (!Directory.Exists("data/Text/" + m_Language + "/"))
{
return;
}
string[] items = Directory.GetFiles("data/Text/"+m_Language+"/");
listBox1.Items.Clear();
foreach (string item1 in items)
{
string item = item1;
if(item.EndsWith(".rtf"))
{
item = item.Substring(item.LastIndexOf("/")+1);
item = item.Substring(0,item.LastIndexOf("."));
listBox1.Items.Add(item);
}
}
listBox1.Tag = "data/Text/" + m_Language + "/";
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (listBox1.Tag != null)
{
if (richTextBox1.Visible)
{
richTextBox1.LoadFile(listBox1.Tag.ToString() + listBox1.Text + ((listBox1.Tag.ToString().StartsWith("data/Text")) ? (".rtf") : (".html")).ToString());
}
else
{
string m_path = AppDomain.CurrentDomain.BaseDirectory + listBox1.Tag.ToString() + listBox1.Text +"/";
swfPlayer1.SetPath(m_path);
}
}
private void toolStripLabel3_Click(object sender, EventArgs e)
{
webBrowser1.Visible = false;
richTextBox1.Visible = !true;
swfPlayer1.Visible = true;
listBox1.Items.Clear();
swfPlayer1.VideoClear();
if (!Directory.Exists("data/Video/" + m_Language + "/"))
{
return;
}
string[] directs = Directory.GetDirectories("data/Video/" + m_Language +"/");
foreach (string item in directs)
{
string str = item;
str = str.Substring(str.LastIndexOf("/") + 1);
listBox1.Items.Add(str);
}
listBox1.Tag = "data/Video/"+m_Language +"/";
}
private void m_LRu_Click(object sender, EventArgs e)
{
if ((sender is ToolStripButton) && (sender as ToolStripButton) == m_LUz)
{
m_Language = "UZ";
m_LUz.Enabled = false;
m_LRu.Enabled = true;
}
else
{
m_Language = "RU";
m_LUz.Enabled = !false;
m_LRu.Enabled = !true;
}

updateLanguage();


}
private void toolStripButton4_Click(object sender, EventArgs e)
{
if (m_SearchText.Text.Trim() == "")
{
m_SearchText.Focus();
///errorProvider1.SetError((Button)m_SearchText, "Izlash Ma\'lumoti kiritilmagan!");
return;
}
richTextBox1.Visible = false;
webBrowser1.Visible = true;
swfPlayer1.VideoClear();
swfPlayer1.Visible = false;
webBrowser1.Url = new Uri("http://www.google.co.uz?search=" + m_SearchText.Text);
}
private void button1_Click(object sender, EventArgs e)
{
if (m_Login.Text.Trim() == "")
{
errorProvider1.SetError(m_Login, "Foydalanuvchi nomi kiritilmadi.");
return;
}
if (m_Password.Text.Trim() == "")
{
errorProvider1.SetError(m_Password, "Foydalanuvchi kalit so'zi kiritilmadi.");
return;
}
}

private void toolStripButton2_Click(object sender, EventArgs e)


if (File.Exists("data/Main/" + m_Language + ".rtf"))
richTextBox1.LoadFile("data/Main/" + m_Language + ".rtf");
else
richTextBox1.Text = "";
}

private void fullScreenToolStripMenuItem_Click(object sender, EventArgs e)


{
m_state.CurrenState = this.WindowState;
this.WindowState = FormWindowState.Maximized;
this.FormBorderStyle = FormBorderStyle.None;
}
private void normalToolStripMenuItem_Click(object sender, EventArgs e)
{
this.WindowState = m_state.CurrenState;
this.FormBorderStyle = FormBorderStyle.Sizable;
}
private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
normalToolStripMenuItem_Click(null, null);
}
}
private void swfPlayer1_KeyPress(object sender, KeyPressEventArgs e)
{
webBrowser1_PreviewKeyDown(null, null);
}
private void linkLabel3_Click(object sender, EventArgs e)
{
if (!(sender is LinkLabel))
return;
richTextBox1.Visible = false;
swfPlayer1.VideoClear();
swfPlayer1.Visible = false;
webBrowser1.Visible = !false;
webBrowser1.Url = new Uri("http://www." + (sender as LinkLabel).Text);
}
}
}

  1. SWFPlayer.cs

using System;
using System.Collections.Generic;
{
public partial class SWFPlayer : UserControl
{
ArrayList list;
int Index = 0;
public SWFPlayer()
{
InitializeComponent();
shock.Quality = 0;
shock.Loop = true;
list = new ArrayList();
Index = 0;
}
= global::VideoCours.Properties.Resources.pause;
shock.Play();
m_PlayPause.Tag = "1";
}
}
private void button3_Click(object sender, EventArgs e)
{
if (list.Count == 0)
return;
if (m_PlayPause.Tag.ToString() !="0")
{
shock.StopPlay();
m_PlayPause.Image = global::VideoCours.Properties.Resources.play;
m_PlayPause.Tag = "0";
}
else
{
m_PlayPause.Tag = "1";
shock.Play();
m_PlayPause.Image = global::VideoCours.Properties.Resources.pause;
}
m_PlayPause.Invalidate();
}
private void button4_Click(object sender, EventArgs e)
{
Index++;
if (list.Count <= Index)
Index = 0;
if (list.Count == 0)
return;
shock.Stop();
shock.Movie = list[Index].ToString();
shock.Play();
m_PlayPause.Tag = "1";
}
}

  1. SWFPlayer.designer.cs

using System;
namespace VideoCours
{
public class FlashPlayerControl : AxShockwaveFlashObjects.AxShockwaveFlash
{
public delegate void ShowContext();
public event ShowContext myShowControl;

protected override void DefWndProc(ref System.Windows.Forms.Message m)


{
if (m.Msg == 0x204)
{
m.Result = IntPtr.Zero;
if (myShowControl != null)
{
myShowControl();
}
return;
}
base.DefWndProc(ref m);
}
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SWFPlayer));
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.dsrfsdfToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.m_End = new System.Windows.Forms.PictureBox();
this.m_PlayPause = new System.Windows.Forms.PictureBox();
this.m_Start = new System.Windows.Forms.PictureBox();
this.shock = new VideoCours.FlashPlayerControl();
this.contextMenuStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.m_End)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.m_PlayPause)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.m_Start)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.shock)).BeginInit();
this.SuspendLayout();
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.dsrfsdfToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(111, 26);
// dsrfsdfToolStripMenuItem
//
this.dsrfsdfToolStripMenuItem.Name = "dsrfsdfToolStripMenuItem";
this.dsrfsdfToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
this.dsrfsdfToolStripMenuItem.Text = "dsrfsdf";
this.m_End.Click += new System.EventHandler(this.button4_Click);
//
// m_PlayPause
//
this.m_PlayPause.BackColor = System.Drawing.Color.Transparent;
this.m_PlayPause.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_PlayPause.BackgroundImage")));
this.m_PlayPause.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.m_PlayPause.Image = ((System.Drawing.Image)(resources.GetObject("m_PlayPause.Image")));
this.m_PlayPause.Location = new System.Drawing.Point(128, 220);
this.m_PlayPause.Name = "m_PlayPause";
this.m_PlayPause.Size = new System.Drawing.Size(36, 30);
this.m_PlayPause.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.m_PlayPause.TabIndex = 2;
this.m_PlayPause.TabStop = false;
this.m_PlayPause.Tag = "0";
this.m_PlayPause.Click += new System.EventHandler(this.button3_Click);
//
// m_Start
//
this.m_Start.BackColor = System.Drawing.Color.Transparent;
this.m_Start.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_Start.BackgroundImage")));
this.m_Start.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.m_Start.Image = ((System.Drawing.Image)(resources.GetObject("m_Start.Image")));
this.m_Start.Location = new System.Drawing.Point(95, 223);
this.m_Start.Margin = new System.Windows.Forms.Padding(0);
this.m_Start.Name = "m_Start";
this.m_Start.Size = new System.Drawing.Size(24, 27);
this.m_Start.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.m_Start.TabIndex = 2;
this.m_Start.TabStop = false;
this.m_Start.Click += new System.EventHandler(this.button2_Click);
//
// shock
//
this.shock.ContextMenuStrip = this.contextMenuStrip1;
this.shock.Dock = System.Windows.Forms.DockStyle.Fill;
this.shock.Enabled = true;
this.shock.Location = new System.Drawing.Point(0, 0);
this.shock.Margin = new System.Windows.Forms.Padding(0);
this.shock.Name = "shock";
this.shock.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("shock.OcxState")));
this.shock.Size = new System.Drawing.Size(311, 253);
this.shock.TabIndex = 0;
this.shock.Resize += new System.EventHandler(this.shock_Resize);
this.shock.myShowControl += new FlashPlayerControl.ShowContext(shock_myShowControl);
//
// SWFPlayer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.m_End);
this.Controls.Add(this.m_PlayPause);
this.Controls.Add(this.m_Start);
this.Controls.Add(this.shock);
this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "SWFPlayer";
this.Size = new System.Drawing.Size(311, 253);
this.contextMenuStrip1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.m_End)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.m_PlayPause)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.m_Start)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.shock)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox m_Start;
private System.Windows.Forms.PictureBox m_PlayPause;
private System.Windows.Forms.PictureBox m_End;
private FlashPlayerControl shock;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem dsrfsdfToolStripMenuItem;
}
}

  1. Main.designer.cs

namespace VideoCours
{
Download 0.73 Mb.

Do'stlaringiz bilan baham:
1   ...   13   14   15   16   17   18   19   20   21




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling