private void popModInfoDat_Click(object sender, EventArgs e) { frmDocument doc = new frmDocument(); doc.Text = Path.GetFileName(actualModDir.Name + " info.dat"); doc.MdiParent = this; doc.WindowState = FormWindowState.Maximized; doc.Show(); doc.OpenFile(actualModDir.FullName + @"\info.dat"); }
private void CreateNewDocument() { frmDocument doc = new frmDocument(); doc.MdiParent = this; doc.WindowState = FormWindowState.Maximized; doc.Show(); doc.Update(); doc.Text = "Document " + this.MdiChildren.Length.ToString(); }
private void fileExplorer1_OnBrowserNodeDoubleClick(object sender, EventArgs e) { if (!(fileExplorer1.ExplorerTree.SelectedNode.Tag is FileInfo)) { return; } FileInfo dir = fileExplorer1.ExplorerTree.SelectedNode.Tag as FileInfo; frmDocument doc = new frmDocument(); doc.Text = dir.Name; doc.MdiParent = this; doc.WindowState = FormWindowState.Maximized; doc.Show(); doc.Update(); doc.OpenFile(dir.FullName); }
private void OpenDocument() { openFileDialog1.FileName = ""; openFileDialog1.Filter = "Wszystkie skrypty (*.lua, *.gs, *.qst, *.dlg, *.mod)|*.lua;*.gs;*.qst;*.dlg;*.mod|" + "Pliki LUA (*.lua)|*.lua|" + "Pliki GameScript (*.gs)|*.gs|" + "Pliki Questów (*.qst)|*.qst|" + "Pliki Dialogów (*.dlg)|*.dlg|" + "Pliki Modów (*.mod)|*.mod|" + "Wszystkie pliki (*.*)|*.*"; openFileDialog1.Title = "Otwórz skrypt gry"; openFileDialog1.ShowDialog(); if (openFileDialog1.FileName == "") { return; } frmDocument doc = new frmDocument(); doc.Text = Path.GetFileName(openFileDialog1.FileName); doc.MdiParent = this; doc.WindowState = FormWindowState.Maximized; doc.Show(); doc.OpenFile(openFileDialog1.FileName); }