Ejemplo n.º 1
0
        //public Dictionary<Form, bool> formMag { get; set; } = new Dictionary<Form, bool>();
        private void fileList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            //var item = fileList.GetItemAt(e.X, e.Y);
            var item = fileList.GetItemAt(e.X, e.Y);
            //MessageBox.Show(fileList.Items.IndexOf(item).ToString());
            int index = fileList.Items.IndexOf(item);

            //string fileName = item.SubItems[0].Text.Substring(item.SubItems[0].Text.LastIndexOf('/') + 1);
            //foreach (var i in item.SubItems)
            //{
            //MessageBox.Show(i.ToString());
            //}
            if (tempData.store[index].type == "text")
            {
                TextEdi textEdi = new TextEdi(tempData.store[index]);
                textEdi.Owner = this;
                //formMag.Add(textEdi, false);
                textEdi.Show();
            }
            else
            {
                DrawForm drawing = new DrawForm(tempData.store[index]);
                drawing.Owner = this;
                drawing.Show();
            }
        }
Ejemplo n.º 2
0
        private void newFile(object o, EventArgs e)
        {
            TextEdi textEdi = new TextEdi();

            textEdi.Owner = this;
            textEdi.Show();
            newPanel.BackColor = Color.FromArgb(100, 22, 51, 72);
        }
Ejemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            TextEdi edi = new TextEdi();

            edi.Show();
        }