public Form2(Form1 form1) { f1 = form1; InitializeComponent(); // Die Form beweglich machen... this.dragExtender1 = new DragExtender(); this.dragExtender1.Form = this; // make the form draggable this.dragExtender1.SetDraggable(this, true); this.dragExtender1.SetDraggable(this.panel1, true); this.dragExtender1.SetDraggable(this.label1, true); this.dragExtender1.SetDraggable(this.label2, true); try { doc.Load("B:\\CONFIG.XML"); XmlNode xnHome = doc.SelectSingleNode("/settings/eintrag/home"); home = xnHome.Attributes["param"].InnerText; } catch { } if(home != "true") { pictureBox2.Visible = false; } }
public HighCollectionRate(ref Form1 form1Handler) { Firstformref = form1Handler; InitializeComponent(); foreach (string d in BackGroundWorker.DeviceBackGroundWorker.GetDeviceList) { DevicesCBL.Items.Add(d); } _t.Interval = 1000; _t.Tick += AddDevices; _t.Start(); //value GetValueBackgroundWorker.DoWork += ValueBackgroundWorker.GetValueBackgroundWorkerOnDoWork; GetValueBackgroundWorker.ProgressChanged += ValueBackgroundWorker.GetValueBackgroundWorkerOnProgressChanged; ValueBackgroundWorker.ValueManualResetEvent.Reset(); GetValueBackgroundWorker.WorkerReportsProgress = true; object o = progressBar1; ValueBackgroundWorker.StartButton = StartButton; ValueBackgroundWorker.StopButton = StopButton; ValueBackgroundWorker.DeviceListCheckBox = DevicesCBL; ValueBackgroundWorker.TimeTextBox = TimeTextBox; ValueBackgroundWorker.SamplesTextBox = SampleIntervalTextBox; StartButton.Enabled = false; if (GetValueBackgroundWorker.IsBusy != true) { GetValueBackgroundWorker.RunWorkerAsync(o); } }
// odczyt z pliku i dodawanie rekordów public Odczyt(Form1 form ,string fileName) { string line; string[] dane = new string[6]; char[] spliters = { ';', '\n'}; StreamReader file = new StreamReader("input.txt"); int i = 0; while ((line = file.ReadLine()) != null) { if (i == 0) { dane = line.Split(spliters); for (int k = 0; k < dane.Length; k++) { form.addCols(dane[k], dane[k]); } } else if (i != 0) { dane = line.Split(spliters); form.addRecordToGrid(dane); //form.addRecordToGrid(dane); } i++; } file.Close(); }
public GameLogic(Form1 form) { networkClient = new NetworkClient(this, "localhost" , 31337); mainForm = form; highscores = new Dictionary<string, int>(); }
private void button1_Click_1(object sender, EventArgs e) { Form1 newform = new Form1(); this.Hide(); newform.ShowDialog(); this.Close(); }
public TaskClearAnime(Form1 form1) { _form1 = form1; _wait = 10; _maxAnimeCnt = 60 * 8 / _wait; Init(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form1 f = new Form1(); Application.Run(f); }
public Form2(Form1 _form) { InitializeComponent(); form1 = _form; // 로그인 폼에서 넘겨받은 id를 클라이언트의 id 정보에 적용 chatClientInfo.user_id = Form1.ActiveForm.Controls["textBox1"].Text.ToString(); lobbyClientInfo.user_id = Form1.ActiveForm.Controls["textBox1"].Text.ToString(); UserData.Text = chatClientInfo.user_id; // lobby status 변환 lobbyClientInfo.status = LOBBY_STATUS.LOBBY_IN; // 새로운 클라이언트를 할당받고 로비 서버에 메시지를 보내 접속을 알림 lobby = new LobbyClient(this, lobbyClientInfo); lobby.sendMessage(lobbyClientInfo); // 채팅 모드를 default인 전체 채팅 모드로 하며 새로운 채팅 클라이언트를 할당 chatClientInfo.chat_target = CHAT_TARGET.CHAT_ALL; chat = new ChatClient(this, chatClientInfo); // 접속자 리스트 갱신 listView2.View = View.Details; listView2.BeginUpdate(); }
private void btnLogin_Click(object sender, EventArgs e) { m_sbQueryText.Length = 0; m_sbQueryText.AppendFormat("select id from nexusGarments_Master_Employee where username='******' and password='******'", txtUserName.Text.ToString().Trim(), txtPassword.Text.ToString().Trim()); if (dbHandler.IsExists(m_sbQueryText.ToString())) { Form1 main = new Form1(); m_sbQueryText.Length = 0; m_sbQueryText.AppendFormat("select id from nexusGarments_Master_Employee where username='******' ", txtUserName.Text.ToString().Trim()); dbHandler.loadUserid(m_sbQueryText.ToString(), Sess.id); //XtraMessageBox.Show(main.lblID.Text.ToString()); //this.Close(); Sess.id = Convert.ToInt32(Sess.id); this.Hide(); main.ShowDialog(); this.Close(); } else { XtraMessageBox.Show("Login Failed", "Nexus Garments", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public Form7(Form1 formLink) { this.formLink = formLink; InitializeComponent(); connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=DataBase2.accdb; Persist Security Info=False;"; }
private void button2_Click(object sender, EventArgs e) { Form1 obj1 = new Form1(); obj1.RefToForm7 = this; this.Close(); this.RefToForm1.Show(); }
/// <summary> /// Метод перестановки уроков. /// </summary> /// <param name="f">Главная форма программы</param> public void Perestanovka(Form1 f) { this.TablicaAdd(f); this.a = 0; for (int i = 2; i < f.Tabl.ColumnCount; i++) { for (int j = 1; j < f.Tabl.RowCount; j++) { f.Tabl[i, j].Value = string.Empty; } } while (this.a <= 28) { for (int fo = 0; fo < 3; fo++) { for (int fok = 0; fok < 7; fok++) { this.AlgBeta(); this.AlgBetaT(); this.DopAlg(); } this.AlgOkna(); } this.a = this.a + 7; } this.Exp(f); }
public Server(Form1 form) { this.form = form; server_active = true; Thread thread = new Thread(new ThreadStart(initializeServer)); thread.Start(); }
public FormSlices(Form1 form, Nodes nodes, DataToRender dataToRender, DeviceContext context) { this.form = form; this.nodes = nodes; this.dataToRender = dataToRender; InitializeComponent(); if (!dataToRender.pathToVtk) { trackBar1.Enabled = false; trackBar2.Enabled = false; trackBar3.Enabled = false; checkBoxXY.Enabled = false; checkBoxXZ.Enabled = false; checkBoxYZ.Enabled = false; DisableOkolie(); form.StatusInfo = "Set the path to vtk files to enable full functionality!"; } else { this.SetForSlices(); } checkBox1.Checked = dataToRender.okolie; DisableButton2(); DisableButton3(); SetComboBox(); }
public WordFileControl(Form1 mainform) { // // TODO: 여기에 생성자 논리를 추가합니다. // form1 = mainform; }
private void button1_Click(object sender, EventArgs e) { this.Close(); Form1 form = new Form1(); form.Show(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var cache = GetDataFolder(); using (var source = new CancellationTokenSource()) { var builder = Sys.Configure(cache); var fastSubject = new Subject<ISystemEvent>(); builder.Advanced.Observers.Clear(); builder.Advanced.RegisterObserver(fastSubject); using (var host = builder.Build()) { Console.WriteLine("Starting host"); var task = host.Start(source.Token); var form = new Form1(host, fastSubject); form.FormClosing += (sender, args) => source.Cancel(); Application.Run(form); task.Wait(5000); } } }
private void button3_Click(object sender, EventArgs e) { form = new Form1(3); this.Hide(); form.ShowDialog(); this.Show(); }
public Form2(String hostPort, Form1 form1) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // dataReadyToSend = new AutoResetEvent(false); refToForm1 = form1; // Resolve the local host. IPHostEntry localHost = Dns.Resolve(Dns.GetHostName()); // Create a local end point for listening. IPEndPoint localEndPoint = new IPEndPoint(localHost.AddressList[0], 4001); // Instantiate the TCP Listener. tcpListener = new TcpListener(localEndPoint); tcpListener.Start(); tcp = tcpListener.AcceptTcpClient(); ethernetThreadStart = new ThreadStart(this.ThreadProcPollOnEthernet); pollDevicesEthernetThread = new Thread(ethernetThreadStart); pollDevicesEthernetThread.Name = "Listener's Receive Thread"; pollDevicesEthernetThread.ApartmentState = System.Threading.ApartmentState.MTA; pollDevicesEthernetThread.Start(); }
public void write_log_file(Form1 f,String type_of_network) { this.f = f; int time = f.time; Console.Write("Time in excel : " + time); Console.Write("Selected network : " + type_of_network); String network_type = make_network_string(type_of_network); nodes = Convert.ToString(f.no_of_nodes); String connections = make_connections_string(); if (System.IO.File.Exists("log.xls")) file_exists = true; // MyConnection = new System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\ABHISHEK\\ExcelData1.xls;;Extended Properties=Excel 8.0;"); MyConnection = new System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;Data Source = log.xls;;Extended Properties=Excel 8.0;"); MyConnection.Open(); myCommand.Connection = MyConnection; if (!file_exists) { Console.Write("does not exist"); sql = "CREATE TABLE Simulation (TypeofNetwork String, Nodes int, Packets int,Seeder_Nodes int,Seeder_Packets int,Download_edges int,Upload_edges int,Ratio float,Thresh_Probability float,Nodes_row int,Connections String,Alturists int,Traders int,Parasites int,Time_taken int)"; myCommand.CommandText = sql; myCommand.ExecuteNonQuery(); } sql = "INSERT INTO [Simulation$] (TypeofNetwork, Nodes, Packets,Seeder_Nodes,Seeder_Packets,Download_edges,Upload_edges,Ratio,Thresh_Probability,Nodes_row,Connections,Alturists,Traders,Parasites,Time_taken) values (" + " ' " + network_type + " ' " + "," + nodes + "," + f.no_of_packets.ToString() + "," + f.seeder_nodes.ToString() + "," + f.seeder_packets.ToString() + "," + f.no_of_download_edges.ToString() + "," + f.no_of_upload_edges.ToString() + "," + f.ratio.ToString() + "," + (f.threshold_probability / 100.0).ToString() + "," + f.widthstep.ToString() + "," + "'" + connections +"'" + "," +f.alturists.ToString() + "," + f.traders.ToString() + "," + f.parasites.ToString()+"," +time.ToString()+ ")"; myCommand.CommandText = sql; myCommand.ExecuteNonQuery(); MyConnection.Close(); }
public Dialog(Point Position, Size Size, string Caption = "", string Text = "", int Depth = 0, state Type = state.message, Form1 f = null) { this.Position = Position; this.Size = Size; this.Caption = Caption; this.Text = Text; this.Depth = Depth; this.Type = Type; nextDialog = null; Id = Globalization.setId(); DialogueStart = false; nextDialogID = -1; Rotation = 0; nextDialogBranch = null; nextDialogBranchId = -1; nextConditionDialog = null; nextActionDialog = null; messageAttachedWire = -1; startPosition = Position; startPositionUnzoomed = Position; Rotation = 0; Update(f); }
private void button_Click(object sender, EventArgs e) { DialogResult dialogResult = MessageBox.Show("是否关闭","", MessageBoxButtons.YesNo); if(dialogResult== DialogResult.Yes) { this.Close(); } List<Form> formList = new List<Form>(); Form1 f1 = new Form1(); formList.Add(f1); Form1 f2 = new Form1(); formList.Add(f2); Form1 f3 = new Form1(); formList.Add(f3); f1.Close(); formList.Remove(f1); foreach(Form f in formList) { f.Close(); } }
static void Main() { User32Application app = new User32Application(); Form1 win = new Form1(); app.Run(win); }
public Rename_Character(Form1 father, string name) { InitializeComponent(); this.father = father; textBox1.Text = name; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); MainForm = new Form1(); // Create Server object ServerBB = new BBServer(); // Catch log events ServerBB.Log.LogEvent += new EventHandler<NetLogEventArgs>(Program.Log_LogEvent); // Catch co/deco events ServerBB.ClientConnected += new EventHandler<ClientConnectEventArgs>(ServerBB_ClientConnected); ServerBB.ClientDisconnected += new EventHandler<ClientConnectEventArgs>(ServerBB_ClientDisconnected); Application.Idle += new EventHandler(ApplicationLoop); CreateNotificationIcon(); Application.Run(MainForm); // shutdown; sends disconnect to all connected clients with this reason string ServerBB.Stop("Application exiting"); if (notifyIconNA != null) notifyIconNA.Visible = false; }
public Form1(int w, int h, bool mx, bool sz, string nm) { InitializeComponent(); try { byte[] ic = ResourceLocator.getResources().getResource("favicon.ico"); MemoryStream ms=new MemoryStream(ic); this.Icon = new System.Drawing.Icon(ms); ms.Close(); } catch (Exception) { this.Icon = System.Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath); } Text = nm; if (!sz) { FormBorderStyle = FormBorderStyle.FixedSingle; MaximizeBox = false; } if (mx) WindowState = FormWindowState.Maximized; else { Width = w; Height = h; } webBrowser1.Navigate("http://localhost:34567/"); obj = this; }
private void pictureBox2_Click(object sender, EventArgs e) { Form1 f1 = new Form1(); this.Close(); this.Hide(); f1.ShowDialog(); }
public SocketClient(Form1 form,string inRemoteIpAddr, int inRemotePortNum) { this._RemoteIpAddress = inRemoteIpAddr; this._RemotePortNumber = inRemotePortNum; f = form; setListBox = f.addListBoxString; }
public static int ColorNumbers(int[] neu, int[] alt, int z, Form1 f1) { f1.richTextBox1.AppendText("Schritt " + z + ": "); z++; f1.richTextBox1.Update(); Thread.Sleep(f1.delay); for (int x = 0; x < neu.Length; x++) { if (alt[x] != neu[x]) { f1.richTextBox1.SelectionColor = Color.Red; f1.richTextBox1.AppendText(alt[x].ToString()); f1.richTextBox1.SelectionColor = Color.Black; f1.richTextBox1.AppendText(" "); } else { f1.richTextBox1.AppendText(alt[x].ToString()); f1.richTextBox1.AppendText(" "); } } f1.richTextBox1.AppendText("\n"); //Scrollen f1.richTextBox1.Select(f1.richTextBox1.Text.Length, 1); f1.richTextBox1.ScrollToCaret(); f1.richTextBox1.Update(); return z; }
static void Main() { #if DEBUG // Enable object tracking SharpDX.Configuration.EnableObjectTracking = true; #endif // Create the form to render to var form = new Form1(); form.Text = "D3DRendering - Physics Simulation"; form.ClientSize = new System.Drawing.Size(640, 480); form.Show(); // Create and initialize the new D3D application // Then run the application. using (D3DApp app = new D3DApp(form)) { // Only render frames at the maximum rate the // display device can handle. app.VSync = true; // Initialize the framework (creates Direct3D device etc) app.Initialize(); // Run the application app.Run(); } }
protected override void OnKeyDown(KeyEventArgs e) { Form1 form = (Form1)FindForm(); if (form == null) { base.OnKeyDown(e); return; } ctrlFlag = e.Control; if (e.KeyCode == Keys.Enter) { String result = String.Empty; if (form.KeepBulletListOnReturn) { result = TextManager.KeepBulletListOnReturn(form); } if (!String.IsNullOrEmpty(result) || form.KeepInitialSpacesOnReturn) { result = TextManager.KeepInitialSpacesOnReturn(form) + result; } SelectedText = String.Format("{0}{1}", ConstantUtil.newLine, result); e.Handled = true; e.SuppressKeyPress = true; } else if (e.Shift && e.KeyCode == Keys.Tab) { TextManager.OutdentSelectedLines(form); e.Handled = true; e.SuppressKeyPress = true; } else if (e.KeyCode == Keys.Tab) { TextManager.IndentSelectedLines(form); e.Handled = true; e.SuppressKeyPress = true; } else if (e.Control && e.KeyCode == Keys.Z) { TextManager.UndoRich(form); e.Handled = true; e.SuppressKeyPress = true; } else if (e.Control && e.KeyCode == Keys.Y) { TextManager.RedoRich(form); e.Handled = true; e.SuppressKeyPress = true; } else if (e.Control && e.KeyCode == Keys.X) { TextManager.Cut(form); e.Handled = true; e.SuppressKeyPress = true; } else if (e.Control && e.KeyCode == Keys.C) { TextManager.Copy(form); e.Handled = true; e.SuppressKeyPress = true; } else if (e.Control && e.KeyCode == Keys.V) { TextManager.Paste(form); e.Handled = true; e.SuppressKeyPress = true; } else if (e.KeyCode == Keys.Insert) { TabManager.InsertMode(form); base.OnKeyDown(e); } else if (e.Control && e.KeyCode == Keys.L) { TextManager.SelectCurrentLine(form); e.Handled = true; e.SuppressKeyPress = true; } else if (!e.Control && e.Shift && e.KeyCode == Keys.Home) { TextManager.SelectTillFirstSensibleChar(form); e.Handled = true; e.SuppressKeyPress = true; } else if (!e.Control && !e.Shift && e.KeyCode == Keys.Home) { TextManager.MoveToFirstSensibleChar(form); e.Handled = true; e.SuppressKeyPress = true; } else { base.OnKeyDown(e); } }
private void BackButton_Click(object sender, EventArgs e) { Form1.switchScreen(this, "game"); // return to game }
public ControladorTiendas(Form appform) { this.appform = appform as Form1; this.appform.AddTienda += OnAddRest; }
public RaceSession(int nonRtFps, Form1 form, SdkWrapper sessionWrapper, Dash sessionDash) : base(nonRtFps, form, sessionWrapper, sessionDash) { }
static private void ThreadFun() { if (enableRun < 0) { isEnd = true; return; } mWBStage.enableRun--; // string str1 = null; switch (code.codeType) { case CodeType.ADD: case CodeType.SUB: case CodeType.AND: case CodeType.OR: case CodeType.XOR: case CodeType.NOR: case CodeType.SLT: case CodeType.SLTU: //以上是三个寄存器类型 case CodeType.SLL: case CodeType.SRL: case CodeType.SRA: //以上是2个寄存器类型 case CodeType.SLLV: case CodeType.SRLV: case CodeType.SRAV: //以上是三个寄存器类型 { string rd = code.machineCode.Substring(16, 5); rd = "$" + CommonTool.StrToNum(TypeCode.Int32, rd, 2); Int32 value = (Int32)mWBStage.args[0]; if (!Register.SetRegisterValue(rd, value)) { if (MipsSimulator.Program.mode == 1) { Form1.Message(code.codeStr + " error\r\n"); } if (MipsSimulator.Program.mode == 0) { throw new Exception(code.codeStr + " error\r\n"); } } break; } case CodeType.ADDU: case CodeType.SUBU: { string rd = code.machineCode.Substring(16, 5); rd = "$" + CommonTool.StrToNum(TypeCode.Int32, rd, 2); UInt32 value = (UInt32)mWBStage.args[0]; if (!Register.SetRegisterValue(rd, value)) { if (MipsSimulator.Program.mode == 1) { Form1.Message(code.codeStr + " error\r\n"); } if (MipsSimulator.Program.mode == 0) { throw new Exception(code.codeStr + " error\r\n"); } } break; } case CodeType.ADDI: case CodeType.ADDIU: case CodeType.ANDI: case CodeType.ORI: case CodeType.XORI: //以上是2个寄存器类型 case CodeType.LUI: case CodeType.SLTI: case CodeType.SLTIU: { string rt = code.machineCode.Substring(11, 5); rt = "$" + CommonTool.StrToNum(TypeCode.Int32, rt, 2); Int32 value = (Int32)mWBStage.args[0]; if (!Register.SetRegisterValue(rt, value)) { if (MipsSimulator.Program.mode == 1) { Form1.Message(code.codeStr + " error\r\n"); } if (MipsSimulator.Program.mode == 0) { throw new Exception(code.codeStr + " error\r\n"); } } break; } case CodeType.JAL: { Int32 value = (Int32)mWBStage.args[0]; if (!Register.SetRegisterValue("$31", value)) { if (MipsSimulator.Program.mode == 1) { Form1.Message(code.codeStr + " error\r\n"); } if (MipsSimulator.Program.mode == 0) { throw new Exception(code.codeStr + " error\r\n"); } } break; } case CodeType.LW: { string rt = code.machineCode.Substring(11, 5); rt = "$" + CommonTool.StrToNum(TypeCode.Int32, rt, 2); Int32 value = (Int32)mWBStage.args[0]; if (!Register.SetRegisterValue(rt, value)) { if (MipsSimulator.Program.mode == 1) { Form1.Message(code.codeStr + " error\r\n"); } if (MipsSimulator.Program.mode == 0) { throw new Exception(code.codeStr + " error\r\n"); } } break; } } if (MipsSimulator.Program.mode == 1) { int colorIndex = (int)cmdMode.lineTable[mWBStage.code.Index]; Form1.codeColor(colorIndex, 5); } isEnd = true; return; }
public MessageParser(Form1 f) { form = f; }
public Form2(Form1 form) { InitializeComponent(); m_MainForm = form; }
static void Main(string[] args) { var f = new Form1( ); System.Windows.Forms.Application.Run(f); }
public short TriggerAndMonitorTask(string sApp, string sServer, string sVarName, string[] sVarValue, Form1 Principal) { string applicationTask; Uri _qms = new Uri("http://" + sServer + ":4799/QMS/Service"); IQMS client = CreateQMSAPIClient(_qms, Principal); bool bResult = false; TriggerEDXTaskResult triggerResult; byte serverType = getServerType(client); applicationTask = sApp; if (serverType == 1) { applicationTask = applicationTask.Replace(".qvw", ""); if (applicationTask.LastIndexOf('\\') > 0) { applicationTask = applicationTask.Substring(applicationTask.LastIndexOf('\\') + 1); } Console.WriteLine(applicationTask); } if (client != null) { try { triggerResult = client.TriggerEDXTask(Guid.Empty, applicationTask, string.Empty, sVarName, sVarValue); if (triggerResult.EDXTaskStartResult == EDXTaskStartResult.TaskIsAlreadyRunning) { return(5); } } catch (Exception ex) { Principal.setEstadoRecarga(System.Security.Principal.WindowsIdentity.GetCurrent().Name + " " + ex.Message); return(1); //error de permisos } if (triggerResult.EDXTaskStartResult == EDXTaskStartResult.Success) { bResult = PollSingleTask(client, triggerResult.ExecId, _pollIntervall, _timeout); } else { return(2); //error de recarga no se pudo iniciar la recarga o tarea no existe } } else { return(3); //error de conexion } if (bResult == true) { sendF5(); return(0); } return(4); //error de recarga(Codigo) o se la cancelo de consola }
public Form_GPS(Form1 owner) { InitializeComponent(); owner.GpsUpdated += new Form1.GpsUpdateHandler(gps_updated); }
private void SomeFunc() { Form1 form1 = GetForm1Reference(); form1.UpdateMenuStatus(true); }
public MasovnoIzdavanjeFakturiFirmaUpravitel(Form1 parent) { InitializeComponent(); MdiParent = parent; }
public MyClass(Form1 form) { this.MyForm = form; }
public IzvestajZaIzdadeniFakturiBanka(Form1 parent) { InitializeComponent(); MdiParent = parent; }
public ThematicTransaction(int x, int y, int height, int width, Form1 _mainForm) : base(x, y, height, width, _mainForm) { }
public Form_Command_Info(Form1 CS_Main) { Main = CS_Main; InitializeComponent(); }
private void buttonItem1_Click(object sender, EventArgs e) { Form1 f = (Form1)Form.ActiveForm; f.RemoveCurrentTab(); }
internal void RegisterParent(Form1 form) { this._parent = form; }
private void sortTabsAlphabeticallyToolStripButton_Click(object sender, EventArgs e) { Form1 form = (Form1)ParentForm; TabManager.SortTabsAlphabetically(form); }
public DomosplusScraper(Form1 myUI, string websiteLink, string subdirectory, string pageString, string symbol, ILog logger) : base(myUI, websiteLink, subdirectory, pageString, symbol, logger) { }
private void moveTabLastToolStripButton_Click(object sender, EventArgs e) { Form1 form = (Form1)ParentForm; TabManager.MoveTabDownOrLast(form, true); }
public void Form1Test() { Assert.Fail(); Form1 obj = new Form1(); }
private void tabExplorerTreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { Form1 form = (Form1)ParentForm; ExplorerManager.SelectTabPageFromTabExplorer(form, e); }
private void closeAllToolStripButton_Click(object sender, EventArgs e) { Form1 form = (Form1)ParentForm; TabManager.CloseAllPages(form); }
public Form2(Form1 frm) { InitializeComponent(); this.frm = frm; }
private void moveTabUpToolStripButton_Click(object sender, EventArgs e) { Form1 form = (Form1)ParentForm; TabManager.MoveTabFirstOrUp(form); }
List<string> _moveFolder = new List<string>();//TV Show folders #endregion //get Main Form object public void Start(Form1 tempMain) { _main = tempMain; }
private void 测试程序ToolStripMenuItem_Click(object sender, EventArgs e) { Form1 f = new Form1(); f.ShowDialog(); }
public Form1() { InitializeComponent(); inst = this; }
public void TestMethod1() { Form1 obj = new Form1(); }