public void Menu_Close(object sender, RoutedEventArgs e) { xap = null; dgXap.ItemsSource = null; dAppName.Text = string.Empty; dImage.Source = null; dAppProp.Text = string.Empty; menu_pack.IsEnabled = false; leftCol.MinWidth = 0; leftCol.Width = new GridLength(0); menu_close.IsEnabled = false; menu_savexap.IsEnabled = true; CloseAllFiles(true); }
public XapEntry(string d, Xap p, bool dir) { root = d; IsFolder = dir; if (dir) { Name = root.Substring(p.Root.Length + 1).Replace("\\", "/"); return; } else { Name = Path.GetFileName(root); } Extension = Path.GetExtension(root).Substring(1); }
public bool OpenXap(string fp) { xap = new Xap(fp); xap.Open(); dgXap.ItemsSource = xap.List; dAppName.Text = xap.Meta["Title"]; try { dImage.Source = StaticBitmap.Read(xap.GetIcon()); } catch (Exception) { } dAppProp.Text = string.Format("Version {3} ({4})\rAuthor: {0}\rPublisher: {2}", xap.Meta["Author"], xap.Meta["Genre"], xap.Meta["Publisher"], xap.Meta["Version"], xap.Meta["RuntimeType"], xap.Meta["ProductID"]); menu_pack.IsEnabled = true; leftCol.MinWidth = 5; leftCol.Width = new GridLength(300); menu_close.IsEnabled = true; menu_savexap.IsEnabled = true; SaveRecent("RecentXap", xap.Source); LoadRecent("RecentXap", "menu_recentxap"); return(true); }
public bool OpenXap(string fp) { xap = new Xap(fp); xap.Open(); dgXap.ItemsSource = xap.List; dAppName.Text = xap.Meta["Title"]; try { dImage.Source = StaticBitmap.Read(xap.GetIcon()); } catch (Exception) { } dAppProp.Text = string.Format("Version {3} ({4})\rAuthor: {0}\rPublisher: {2}", xap.Meta["Author"], xap.Meta["Genre"], xap.Meta["Publisher"], xap.Meta["Version"], xap.Meta["RuntimeType"], xap.Meta["ProductID"]); menu_pack.IsEnabled = true; leftCol.MinWidth = 5; leftCol.Width = new GridLength(300); menu_close.IsEnabled = true; menu_savexap.IsEnabled = true; SaveRecent("RecentXap", xap.Source); LoadRecent("RecentXap", "menu_recentxap"); return true; }
public XapEntry(string d, Xap p, bool dir) { root = d; IsFolder = dir; if (dir) { Name = root.Substring(p.Root.Length + 1).Replace("\\", "/"); return; } else Name = Path.GetFileName(root); Extension = Path.GetExtension(root).Substring(1); }