Ejemplo n.º 1
0
        private void access_strip_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            try
            {
                FullPath.Clear();
            }
            catch { }
            back_btn.Enabled = false;
            var dekstop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            var myDoc   = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

            if (access_strip.Items[1].Selected == true)
            {
                LoadConent.Invoke(this, new PathEventArgs(dekstop));
                fullpath_lbl.Text = dekstop;
                cheker.Path       = fullpath_lbl.Text;
            }
            else if (access_strip.Items[2].Selected == true)
            {
                fullpath_lbl.Text = myDoc;
                cheker.Path       = fullpath_lbl.Text;
                LoadConent.Invoke(this, new PathEventArgs(myDoc));
            }
            else
            {
                try
                {
                    fullpath_lbl.Text = e.ClickedItem.Text;
                    cheker.Path       = fullpath_lbl.Text;
                    LoadConent.Invoke(this, new PathEventArgs(e.ClickedItem.Text));
                }
                catch (Exception ex) { MessageBox.Show(ex.Message, "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); }
            }
        }
Ejemplo n.º 2
0
 private void back_btn_Click(object sender, EventArgs e)
 {
     fullpath_lbl.Text = FullPath.Peek();
     cheker.Path       = fullpath_lbl.Text;
     LoadConent.Invoke(this, new PathEventArgs(FullPath.Pop()));
     if (FullPath.Count == 0)
     {
         back_btn.Enabled = false;
     }
 }